
public class BigNumMulti {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int i = -1;
		System.out.println(i);
	}

	public static void multiply(int a[], int b[]) {
		int[] result = new int[a.length+b.length+2];
		int i, j, k = 0;
		int tmp = 0;
		for (i = 0; i < a.length; ++i) {
			k = i;
			for (j = 0; j < b.length; ++j) {
				result[k++] += a[i] * b[j];
			}
		}
		int carry = 0;
		for (int l = 0; l < result.length+1; l++) {
			k=l;
			if (k < result.length) {
				tmp = (result[k] + carry)/10;
				result[k] = (result[k]+carry) % 10;
				carry = tmp;
			}
		}
		if (carry > 1) {
			result[k] = carry / 10;
			result[k+1] = carry % 10;		
		}
		boolean flag = true;
		for (k=result.length-1; k >= 0; k--) {
			if (flag && result[k] > 0) {
				flag = false;
			}
			if (!flag) {
				System.out.print(result[k]);
			}
		}
		System.out.println();
	}

}
